import request from '@/utils/request'

// 查询服务资讯列表
export function listServiceArticle(query) {
  return request({
    url: '/informfrontend/serviceArticleBack/list',
    method: 'get',
    params: query
  })
}

// 查询服务资讯详细
export function getServiceArticle(id) {
  return request({
    url: '/informfrontend/serviceArticleBack/' + id,
    method: 'get'
  })
}

// 新增服务资讯
export function addServiceArticle(data) {
  return request({
    url: '/informfrontend/serviceArticleBack',
    method: 'post',
    data: data
  })
}

// 修改服务资讯
export function updateServiceArticle(data) {
  return request({
    url: '/informfrontend/serviceArticleBack',
    method: 'put',
    data: data
  })
}

// 删除服务资讯
export function delServiceArticle(id) {
  return request({
    url: '/informfrontend/serviceArticleBack/' + id,
    method: 'delete'
  })
}
